import Foundation


class ConversationStorageUsage {

    var conversationId: String = ""
    var ownerId: String = ""
    var category: String? = nil
    var name: String = ""
    var iconUrl: String = ""

    var ownerIdentityNumber: String = ""
    var ownerFullName: String = ""
    var ownerAvatarUrl: String = ""
    var ownerIsVerified = false

    var mediaSize: Int64 = 0

    func getConversationName() -> String {
        guard category == ConversationCategory.CONTACT.rawValue else {
            return name
        }
        return ownerFullName
    }

}
